package sel.me.websocket.learning.entity;

import sel.me.java.learning.common.base.entity.BaseEntity;

/**
 * Created by rajeevkumarsingh on 24/07/17.
 */
public class PushMessage<T> extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	private MessageType type;
    private T content;
    private String sender;

    public enum MessageType {
    	INIT,
    	USER_STATISTIC,
    	CHAT,
        JOIN,
        LEAVE
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

	public T getContent() {
		return content;
	}

	public void setContent(T content) {
		this.content = content;
	}
}
